import uniFetch from './uni-fetch.js'

/**
 * 分页查询消息列表
 */
export const getNotifyListApi = (
  contentType = 201,
  page = 1,
  pageSize = 10
) => {
  return uniFetch.get('/driver/messages/page', { contentType, page, pageSize })
}

/**
 * 全部已读
 */
export const readAllApi = (contentType = 201) => {
  return uniFetch.put(`/driver/messages/readAll/${contentType}`)
}
